package com.XinYun.Library.modules.admin.common;

import com.XinYun.Library.modules.commons.ReturnCodes.ReturnCodes;
public enum AdminReturnCode implements ReturnCodes {

    //客户端成功消息
    SUCCECSS("B0200","成功"),
    //未知的书籍状态
    UNKNOWN_BOOK_STATE("A0400","未知的书籍状态"),
    //访问越界
    ERR_REQUEST_OVERRIDE("A0402","访问越界"),
    //参数错误
    ERR_WRONG_PARAM("A0403","参数错误"),
    //参数为空
    ERR_EMPTY_PARAM("A0404","参数为空"),
    //请求方式错误
    ERR_METHOD("A0401","请求方式错误"),
    //服务端反射异常
    ERR_REFLECT_EXCEPTION("B0501","服务端反射异常"),
    //不可修改
    ERR_UNCHANGED("B0502","不可修改");


    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    AdminReturnCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    final String code;
    final String msg;
}
